package com.ruixi.controller;

import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruixi.core.BaseController;
import com.ruixi.service.IRoleService;



/**
* RoleController
* @author lzg
* @date 2022-08-224 10:41:47
*/
@RestController
@RequestMapping("/role")
public class RoleController extends BaseController{

    @Autowired
    private IRoleService RoleService;

    /**
    * 查询Role列表
    */
    @GetMapping("/list")
    public TableDataInfo list(Role role)
    {
        startPage();
        QueryWrapper<Role> queryWrapper = new QueryWrapper<>();
        List<Role> list = RoleService.list(queryWrapper);
        return getDataTable(list);
    }

}